Load(String,WicContainerFormat,Int32,Nullable<Rectangle>,BaseTransform[]) Method
In This Topic
Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.
Syntax
'Declaration
Public Overloads Sub Load( _
ByVal As System.String, _
ByVal As WicContainerFormat, _
ByVal As System.Integer, _
ByVal As System.Nullable(Of Rectangle), _
ByVal ParamArray () As BaseTransform _
)
public void Load(
System.string ,
WicContainerFormat ,
System.int ,
System.Nullable<Rectangle> ,
params BaseTransform[]
)
Parameters
- path
- The file path to the image.
- containerFormat
- The image container format; use Unknown to detect the format automatically.
- frameIndex
- Index of an image frame to read, pass 0 for image formats not supporting multiple frames.
- imageRect
- Clipping rectangle for the image after all transformations.
- transforms
- The transformation chain for the image that is being loaded.
See Also